package com.zhongke.DKYCboot.mapper;

import com.zhongke.DKYCboot.bean.BaseDriver;
import com.zhongke.DKYCboot.bean.ReceiveBaseDriver;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface BaseDriverMapper {
    // 新增司机
    int insertBaseDriver(BaseDriver baseDriver);
    //搜索司机
    List<BaseDriver> selectBaseDriverList(ReceiveBaseDriver receiveBaseDriver);
    //更新司机信息
    int updateBaseDriver(BaseDriver baseDriver);
    //批量删除司机信息
    public int deleteBaseDriverMany(@Param("ids") int[] ids, @Param("updateBy") String updateBy);
    //根据手机号查询是否有相同的数据
    BaseDriver getBaseDriverPhonenum(String driverPhonenum);
    //根据身份证号查询是否有相同的数据
    BaseDriver getBasedriverIdnumber(String driverIdnumber);
}